<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印出库单 -- VOSUN外贸管理系统</title>
<load href='__PUBLIC__/bootstrap/css/bootstrap.min.css' />
<load href='__PUBLIC__/Css/style.css' />
<style type="text/css">
.table-bordered {
      border: 1px solid black;
}

.table-bordered th,
.table-bordered td {
      border-left: 1px solid black;
}
.table th, .table td {
    border-top: 1px solid black;
}
</style>
<style media="print" type="text/css"> 
.Noprint{display:none;} 
.PageNext{page-break-after: always;} 
</style> 
</head>
<body>
<div class="heading Noprint">
 <span class="offset1">VOSUN出库单</span> <span class="offset3"><button onClick="window.print()" class="btn btn-primary offset1"><i class="icon-print  icon-white"></i>打印</button></span>
</div>
<h1 style="text-align:center">出库单</h1>
<table class="table table-bordered">
   <tr>  <td>出单时间</td><td>{:toDate(time())} </td>  <td colspan="2">出库时间:</td>
   </tr>
   <tr>
       <td>发货单号</td>
       <td>{$vo.mano}</td>
       <td>快递</td>
       <td>{$vo.logi_id|getConfigVal='ForeignLogi'}</td>
   </tr>
<php>$customer_id = getModelName($vo['order_id'],'Order','customer_id');
     $customer = M('Customer')->getById($customer_id);
</php>
   <tr>
       <td>客户</td>
       <td>{$customer['company']}</td>
       <td colspan="2">联系人:{$customer['name']}</td>
   </tr>
   <tr>
       <th>销售单号</th>
       <th>中文名；英文名; CAS号</th>
       <th>数量(KG)</th>
       <th>备注</th>
   </tr>
<?php 
    $map = 'shipping_id = '.$vo['id'] ;
    $products = M('Shipping_detail')->where($map)->order('id desc')->findAll(); 
            
 ?>
   <volist name="products" id="ca">
   <tr>
                <?php $order_detail = M('Order_detail')->getById($ca['order_detail_id']); ?>
                <td>{$order_detail.mano}</td>
                <php>
                    $product = M('Product');
                    $product->getById($ca['product_id']);
                </php>
                <td>{:$product->name}
                ;{:$product->ename};
               <span class="pull-right"> {:$product->cas}</span></td>
                <td>{$ca.number}</td>
                <td></td>
            </tr>
            
    </volist>
</table>
<table width="100%">
    <tr>
        <td>出单:</td>
        <td></td>
        <td>仓库操作:</td>
        <td></td>
    </tr>
</table>
<!--包装空表格-->
<table class="table table-bordered">
    <tr> <th colspan=5>发货单号:</th><th colspan="4">操作员：</th> </tr>
    <tr><th>编号</th><th>包装类型</th> <th>长(CM)</th><th>宽(CM)</th><th>高(CM)</th><th>毛重</th><th>体积重量(KG)</th><th>毛重(KG)</th><th>备注</th></tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        </table>
</body>
</html>
